package com.sf.dlb.jpa.model;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 八爪鱼平台API授权信息 Entity
 *
 * Created by jing.tan on 2018/5/21.
 */
@Entity
@Table(name = "bzy_oauth")
public class BzyOauthInfo extends BaseEntity {
/*`username` varchar(64) DEFAULT NULL COMMENT '用户名',
  `password` varchar(64) DEFAULT NULL COMMENT '密码',
  `grant_type` varchar(64) DEFAULT NULL COMMENT '授权类型',
  `access_token` varchar(128) DEFAULT NULL COMMENT '访问通行证',
  `token_type` varchar(64) DEFAULT NULL COMMENT 'token类型',
  `expires_in` bigint(20) DEFAULT NULL COMMENT 'access_token有效时间（秒）',
  `refresh_token` varchar(128) DEFAULT NULL COMMENT '刷新access_token的凭证',
  `grant_url` varchar(128) DEFAULT NULL COMMENT '授权url', */

	private static final long serialVersionUID = 1L;
	private String username;				// 用户名
	private String password;				// 密码
	private String grantType;     			// 授权类型
	private String accessToken;				// 访问通行证
	private String tokenType;				// token类型
	private Integer expiresIn;				// access_token有效时间（秒）
	private String refreshToken;			// 刷新access_token的凭证
	private String grantUrl;				// 授权url

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getGrantType() {
		return grantType;
	}

	public void setGrantType(String grantType) {
		this.grantType = grantType;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getTokenType() {
		return tokenType;
	}

	public void setTokenType(String tokenType) {
		this.tokenType = tokenType;
	}

	public Integer getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(Integer expiresIn) {
		this.expiresIn = expiresIn;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public String getGrantUrl() {
		return grantUrl;
	}

	public void setGrantUrl(String grantUrl) {
		this.grantUrl = grantUrl;
	}
}